package com.zhixi;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author zhangzhixi
 */
@Slf4j
@SpringBootApplication
@MapperScan("com.zhixi.mapper")
// 启用对Servlet组件（过滤器、Servlet和侦听器）的扫描
@ServletComponentScan
@EnableTransactionManagement
// 开启缓存
@EnableCaching
public class ReggieTakeoutApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieTakeoutApplication.class, args);
        log.info("成功启动！");
    }
}
